package com.tom.architect02.mnbase.annotation.apt.asm;

import java.util.ArrayList;

public class Test {
    //    @org.junit.Test
    public void test() {
        ArrayList list = new ArrayList();
        while (true) {
            list.add(new TestGC());
            try {
                Thread.sleep(10);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }

    class TestGC {
        byte[] bytes = new byte[300 * 1024];//300K
    }

    class Person {

    }

    public void test2() {
//        //? extends      ? super
//        ArrayList<? extends Person> list=new ArrayList<>();
//        list.add(new Person());
//        Person p=list.get(0);
    }

}








